(dired-unmark-all-files): Read the arg as just a char.
authorRichard M. Stallman <rms@gnu.org>
Mon, 5 Apr 1993 06:23:05 +0000 (06:23 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 5 Apr 1993 06:23:05 +0000 (06:23 +0000)
lisp/dired.el

index 859f8e108ba145bada3119bf3556c97533f0067a..818261f1894ed2ccc2e24a8b245ab58a0e5b2407 100644 (file)
@@ -1710,9 +1710,12 @@ OLD and NEW are both characters used to mark files."
 
 (defun dired-unmark-all-files (flag &optional arg)
   "Remove a specific mark or any mark from every file.
-With an arg, queries for each marked file.
+With prefix arg, query for each marked file.
 Type \\[help-command] at that time for help."
-  (interactive "sRemove mark: (default: all marks) \nP")
+  (interactive
+   (let* ((cursor-in-echo-area t))
+     (list (progn (message "Remove marks (RET means all): ") (read-char))
+          current-prefix-arg)))
   (let ((count 0)
        (re (if (zerop (length flag)) dired-re-mark
              (concat "^" (regexp-quote flag)))))